import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'

export default defineUniPages({
  globalStyle: {
    navigationStyle: 'default',
    navigationBarTitleText: '格知汇',
    navigationBarBackgroundColor: '#f8f8f8',
    backgroundColor: '#FFFFFF',
    navigationBarTextStyle: 'black',
  },
  easycom: {
    autoscan: true,
    custom: {
      '^wd-(.*)': 'wot-design-uni/components/wd-$1/wd-$1.vue',
      '^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)':
        'z-paging/components/z-paging$1/z-paging$1.vue',
    },
  },
  tabBar: {
    custom: true,
    list: [
      {
        // iconPath: 'static/tabbar/Home.png',
        // selectedIconPath: 'static/tabbar/selected-Home.png',
        pagePath: 'pages/index/index',
        text: '首页',
      },
      {
        // iconPath: 'static/tabbar/Course.png',
        // selectedIconPath: 'static/tabbar/selected-Course.png',
        pagePath: 'pages/courseCenter/courseCenter',
        text: '课程中心',
      },
      {
        pagePath: 'pages/myMission/myMission',
        text: '我的任务',
      },
      {
        // iconPath: 'static/tabbar/knowledgeStation.png',
        // selectedIconPath: 'static/tabbar/selected-knowledgeStation.png',
        pagePath: 'pages/knowledgePost/knowledgePost',
        text: '知识驿站',
      },
      {
        // iconPath: 'static/tabbar/Me.png',
        // selectedIconPath: 'static/tabbar/selected-Me.png',
        pagePath: 'pages/about/about',
        text: '我的',
      },
    ],
  },
})
